package cn.kuang.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 徽州大都督
 * @date 2020/7/25
 */
@TableName(value = "article_content")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleContent {

    @TableId("cid")
    private String cid;

    private String userContents;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date contentTime;

    @TableLogic
    private Integer deleted;

    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private String tid;
    @TableField(exist = false)
    private Long total;

}
